(function($){
    window.mapInstance.plugin(["AMap.ToolBar"],function(){
        toolBar = new AMap.ToolBar(); //设置地位标记为自定义标记
        window.mapInstance.addControl(toolBar);
        AMap.event.addListener(toolBar,'location',function callback(e){
            $.post("/position/save",{lng:lnglat.lng,lat:lnglat.lat},function(){
                console.log(arguments)
            })
        });
    });
    toolBar.doLocation()
})(jQuery);
